package com.danbay.cloud.device.entity.electricmeter;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 维修换表信息表
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_em_maintain")
public class EmMaintain {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 旧（被换）的电表deviceId
     */
    private String oldDeviceId;

    /**
     * 新电表的deviceId
     */
    private String newDeviceId;

    /**
     * 房源ID，表明针对哪个房源换的表
     */
    private String roomId;

    /**
     * 备注信息
     */
    private String remark;

    /**
     * 更换时间
     */
    private Date addTime;
}
